<style>
    .location {margin:10px 0;border: 1px solid #cccccc;padding: 0 10px;}
</style>
<form id="add-form" class="form-horizontal" role="form" data-toggle="validator" method="POST" action="">

    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">工作地点</label>
        <div class="col-xs-12 col-sm-8">
            <div>
                <button id="add-location2" type="button" class="btn btn-default btn-embossed" data-toggle="addresspicker">地址选择</button>
                <span id="location-error"></span>
            </div>
            <div id="locations">
                <div class="location">
                    <div class="form-control-static">
                        <div class="form-inline" data-toggle="cxselect" data-selects="province,city,district">
                            地区: <select class="province form-control" data-value="" data-rule="required" data-target="#location-error" name="row[province_id]" data-query-name="pid" data-url="xilujob/job_manage/area">
                        </select>
                            <select class="city form-control" data-value="" data-rule="required" data-target="#location-error" name="row[city_id]" data-query-name="pid" data-url="xilujob/job_manage/area">
                            </select>
                            <select class="district form-control" data-value="" data-rule="required" data-target="#location-error" name="row[district_id]" data-query-name="pid" data-url="xilujob/job_manage/area">
                            </select>
                            <!--                            <button type="button" class="btn btn-danger del-location">删除</button>-->
                        </div>
                    </div>
                    <div class="form-control-static">
                        <input type="text" value="" class="form-control" placeholder="地址" maxlength="40" data-rule="required" data-target="#location-error" name="row[address_name]" />
                    </div>
                    <div class="form-control-static">
                        <input type="text" value="" class="form-control" placeholder="地址" maxlength="40" data-rule="required" data-target="#location-error" name="row[address]" />
                    </div>
                </div>
            </div>
        </div>
    </div>
    <input id="c-company_id" class="form-control" name="row[company_id]" type="hidden" value="{:input('company_id',0)}">
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">经纬度</label>
        <div class="co-xs-12 col-sm-4">
            <input id="c-lat"  class="form-control" name="row[lat]" type="text" value="">
        </div>
        <div class="co-xs-12 col-sm-4">
            <input id="c-lng" class="form-control" name="row[lng]" type="text" value="">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">门牌号</label>
        <div class="co-xs-12 col-sm-8">
            <input id="c-house_number"  class="form-control" name="row[house_number]" type="text" value="">
        </div>
    </div>
    <div class="form-group layer-footer">
        <label class="control-label col-xs-12 col-sm-2"></label>
        <div class="col-xs-12 col-sm-8">
            <button type="submit" class="btn btn-embossed disabled" style="padding: 0;">{:__('OK')}</button>
<!--            <button type="reset" class="btn btn-default btn-embossed">{:__('Reset')}</button>-->
        </div>
    </div>
</form>